package oop;

/**
 * @author chihb
 * @create-time 2024/6/29 8:20
 * @description
 */
public class Anonymity {
    public static void main(String[] args) {
        new Animal(){

            @Override
            void cry() {
                System.out.println("我要哭了");
            }
        }.cry();
    }
}
abstract class Animal{
   abstract void cry();
}